package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;
import cn.sumpu.app.guoguojie.domain.Doing;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface DoingDao {
	public void insert(Doing doing) throws AppBusinessException;

	public void update(Doing doing) throws AppBusinessException;

	public Doing getDoingById(String id) throws AppBusinessException;
	
	public Doing getRootDoingById(String id) throws AppBusinessException;
	
	public Doing getDoingByMember(String member) throws AppBusinessException;	//取得这个会员最后一次发微博的
	
	public Doing getDoingByFamily(String member) throws AppBusinessException;	//取得这个家最后一次发微博的

	public List<Doing> getDoingList(Map<String, Object> map)throws AppBusinessException;
	
	public int getDoingListCount(Map<String, Object> map)throws AppBusinessException;

	public void deleteDoing(Map<String,Object> map) throws AppBusinessException;
	
	public void updateForwards(String doingId)throws AppBusinessException;
}
